import Link from 'next/link'

import { ThreadItem } from '@/app/types/Chat'

interface ThreadProps {
  thread: ThreadItem
}

export default function Thread({ thread }: ThreadProps) {
  return (
    <Link href={`/protected/thread/${thread.id}`} className="block">
      {thread.title}
    </Link>
  )
}
